import requestHttp from "@/utils/request";

export default{
    async add(data){
        return await requestHttp.post(`/rental/violation`,data);
    },
    async delete(ids){
        return await requestHttp.delete(`/rental/violation/${ids}`);
    },
    async update(data){
        return await requestHttp.put(`/rental/violation`,data);
    },
    async search(start,size,data){
        return await requestHttp.post(`/rental/violation/${start}/${size}`,data);
    }

}